<template>
    <div :class="className" :style="{height:height,width:width}">
        <div id="quick">
            <div class="quick_item" v-for="item in QuickList" @click="quickClick(item.path)">
                <div class="quick_img">
                    <img :src="item.imgUrl" alt="">
                </div>
                <div class="quick_tit">
                    {{item.name}}
                </div>

            </div>

        </div>
    </div>
</template>

<script>
    require('echarts/theme/macarons')
    import resize from './mixins/resize'
    export default {
        name: '',
        mixins: [resize],
        props: {
            className: {
                type: String,
                default: 'chart'
            },
            width: {
                type: String,
                default: '100%'
            },
            height: {
                type: String,
                default: '350px'
            },
        },
        data() {
            return {
                QuickList: [
                    // {
                    //     imgUrl: require("./quick_icon/quick_stu.png"),
                    //     name: '后台账号管理',
                    //     path: '/jurisdiction/number'
                    // }, {
                    //     imgUrl: require("./quick_icon/quick_tong.png"),
                    //     name: '操作记录',
                    //     path: '/system/runtime'
                    // }, {
                    //     imgUrl: require("./quick_icon/quick_biao.png"),
                    //     name: '礼物组',
                    //     path: '/vote/gift'
                    // }, {
                    //     imgUrl: require("./quick_icon/quick_ke.png"),
                    //     name: '活动模板',
                    //     path: '/vote/vote_model'
                    // }, {
                    //     imgUrl: require("./quick_icon/quick_tea.png"),
                    //     name: '库存管理',
                    //     path: '/pingtai/kucun'
                    // }, {
                    //     imgUrl: require("./quick_icon/quick_ding.png"),
                    //     name: '配置数据',
                    //     path: '/pingtai/pzdata'
                    // }, {
                    //     imgUrl: require("./quick_icon/quick_shou.png"),
                    //     name: '用户列表',
                    //     path: '/pingtai/user'
                    // }, {
                    //     imgUrl: require("./quick_icon/quick_yi.png"),
                    //     name: '活动列表',
                    //     path: '/vote/activity'
                    // }, {
                    //     imgUrl: require("./quick_icon/quick_qian.png"),
                    //     name: '暂未开放',
                    //     path: '#'
                    // }

                ]
            }
        },
        methods: {
            quickClick(path) {
                this.$router.push(path)
            }
        }
    }
</script>

<style scoped>
    #quick {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        cursor: pointer;
    }

    .quick_item {
        width: 33%;
        height: 110px;
        display: flex;
        align-items: center;
    }

    .quick_item .quick_img {
        width: 60px;
    }

    .quick_img img {
        width: 60px;
        height: 60px;
    }

    .quick_tit {
        margin-left: 20px;
        color: #606266;
        font-weight: 400;
    }
</style>
